package com.xhsj.user.hr.userInfo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xhsj.user.hr.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.Version;
import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 用户-合同信息表
 * </p>
 *
 * @author liuqinghua
 * @since 2020-09-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("tb_global_user_contract")
public class TbGlobalUserContract extends BaseEntity<TbGlobalUserContract> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 合同类型
     */
    @TableField("dict_id")
    private Integer dictId;

    /**
     * 合同开始时间
     */
    @TableField("contract_start_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date contractStartTime;

    /**
     * 合同结束时间
     */
    @TableField("contract_end_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date contractEndTime;

    /**
     * 0入职 1续约
     */
    @TableField("contract_type")
    private Integer contractType;

    /**
     * 账户状态 0-正常 1-已作废
     */
    @TableField("status")
    private Integer status;

    /**
     * 合同期限
     */
    @TableField("contract_period")
    private Integer contractPeriod;

    /**
     * 合同删除文件路径
     */
    @TableField("del_url")
    private String delUrl;

    /**
     * 合同文件路径
     */
    @TableField("file_url")
    private String fileUrl;

    /**
     * 文件名称
     */
    @TableField("file_name")
    private String fileName;


}
